import QtQuick 2.0
import QtQuick.Controls.Styles 1.4

Component {
    id: buttonStyle
    ButtonStyle {
        background: Rectangle {
            radius: 3

            implicitWidth: 80
            implicitHeight: 25
            border.color: "gray"
            border.width: 1

            // 为实现鼠标滑动高亮效果，目前会与其他效果发生冲突，先禁用
            /*MouseArea {
                anchors.fill: parent
                hoverEnabled: true
                onEntered: {
                    parent.background.color="red";
                    console.info(parent)
                }

                onExited: {
                    parent.background.color="gray";
                }
            }*/
        }
    }
}
